<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>设备-水处理系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />

		<script src="js/jquery-1.8.2.min.js" type="text/javascript">
</script>
		<script src="js/jquery.carouFredSel-6.0.4-packed.js"
			type="text/javascript">
</script>
		<script type="text/javascript" src="js/main.js">
</script>
		<script language="javascript" type="text/javascript"
			src="My97DatePicker/WdatePicker.js">
</script>

	</head>
	<body>

		<s:if test="result != null">
			<script type="text/javascript">
				alert('${result}');
				window.window.location.href = 'deviceQuery.jsp';
			</script>
		</s:if>
		<div class="main">
			<jsp:include page="conter/header.jsp"></jsp:include>
			<div class="certen">
				<jsp:include page="conter/deviceLeft.jsp"></jsp:include>

				<div class="content">
					<div class="mainbar">
						<div class="runbutton">
							<h2>
								<span style="letter-spacing: 20px; margin-left: 35px;">查询设备</span>
							</h2>
							<div class="clr"></div>
						</div>
						<div class="article">
							<div class="query">

								<form action="searchtDeviceAction?userId=${userId }"
									method="post">
									<ol>
										<li class="selt">
											<input type="radio" name="radio" id="xlh" value="0"
												checked="true" />
											<label for="xlh">
												序列号
											</label>
										</li>
										<s:if test="#session.user.grade == 2 || #session.user.grade == 1">
										<li class="selt">
											<input type="radio" name="radio" id="yhm" value="1" />
											<label for="yhm">
												用户名
											</label>
										</li>
										</s:if>
										<s:if test="#session.user.grade == 2">
										<li class="selt">
											<input type="radio" name="radio" id="quy" value="2" />
											<label for="quy">
												区域
											</label>
										</li>
										</s:if>
										<li>
											<label for="searchvalue">
												输入查询值
											</label>
											<input id="searchvalue" name="searchvalue" class="text" />
										</li>
										<li>
											<input type="image" id="btn5" class="send"
												src="images/chick.jpg" onclick="this.form.submit()" />
											<input type="image" name="imageres" src="images/raset.jpg"
												class="send1" onclick="reset();return false;" />
											<div class="clr"></div>
										</li>
									</ol>
								</form>
							</div>

							<div class="clr"></div>
						</div>

						<div class="fbg" style="width: 832px; margin-top: 32px;">
							<div class="fbg_resize" style="position: absolute; left: -135px;">
								<jsp:include page="conter/smslide.jsp"></jsp:include>
							</div>
						</div>
						<jsp:include page="conter/footer.jsp"></jsp:include>
					</div>
	</body>
</html>